#include "observerwidget.h"

#include <QPainter>

ObserverWidget::ObserverWidget(QWidget * parent )
    : QDialog(parent)
{
}

void ObserverWidget::updateValue(QPoint begin, QPoint end)
{
    mousePressPoint = begin;
    mouseReleasePoint = end;
    update();
}

void ObserverWidget::paintEvent(QPaintEvent *)
{
    QPainter painter(this);
    painter.drawLine(mousePressPoint, mouseReleasePoint);
}
